/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 导航菜单样式 */
.navigation {
    background: linear-gradient(90deg, #2c3e50, #34495e);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #74b9ff;
}

.arrow {
    float: right;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.nav-item.active .arrow {
    transform: rotate(180deg);
}

/* 二级菜单样式 */
.sub-menu {
    list-style: none;
    background-color: #34495e;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.sub-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.sub-menu a:hover {
    background-color: #74b9ff;
    color: white;
    padding-left: 2rem;
}

.sub-menu a:before {
    content: '→';
    position: absolute;
    left: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-menu a:hover:before {
    opacity: 1;
}

/* 主要内容区域 */
.main-content {
    padding: 3rem 2rem;
    background-color: white;
}

.welcome-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-item {
        min-width: auto;
    }
    
    .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        border-radius: 0;
    }
    
    .sub-menu.show {
        max-height: 300px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section {
    animation: fadeIn 0.8s ease-out;
}

.feature-item {
    animation: fadeIn 0.8s ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

/* 页面内容样式 */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.page-content h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h3 {
    color: #34495e;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #74b9ff;
    padding-left: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.value-list {
    list-style: none;
    padding: 0;
}

.value-list li {
    background: #f8f9fa;
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #74b9ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.2);
}

.value-list strong {
    color: #2c3e50;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-back {
    display: inline-block;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-back:hover {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(116, 185, 255, 0.3);
}

/* 产品页面样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #74b9ff;
    font-weight: bold;
} 